import request from '@/plugins/request.js'

export function getResumeType(){
    return request({
        url: '/resume/type',
        method: 'GET'
    })
}

export function getResumeProcess(data){
    return request({
        url: '/resume/process',
        method: 'GET',
        data
    })
}

//根据日期查询产线
export function getProductionLineByDate(data){
    return request({
        url: '/resume/productionLine',
        method: 'GET',
        data
    })
}

//根据日期查询序列号
export function getSerialNumberDate(data){
    return request({
        url: '/resume/querySerialNumberByTime',
        method: 'GET',
        data
    })
}

//根据序列号查询工位信息
export function getStationBySerialNumber(data){
    return request({
        url: '/resume/queryResumeOpAndMa',
        method: 'GET',
        data
    })
}

//根据序列号和工位号查询机器编码
export function getResumeMeModelBySerialNumberPrname(data){
    return request({
        url: '/resume/queryResumeMaModel',
        method: 'GET',
        data
    })
}

//根据K0017查询曲线
export function queryCure(data){
    return request({
        url: '/resume/queryCuresPointData',
        method: 'GET',
        data
    })
}

//查询所有工位信息
export function queryOP(data){
    return request({
        url: '/resume/queryOP',
        method: 'GET',
        data
    })
}

//根据时间、产线查询序列号
export function getSerialNumberByDateAndProduction(data){
    return request({
        url: '/resume/serialNumber',
        method: 'GET',
        data
    })
}


//根据序列号查询工位和机器信息
export function queryResumeOpAndMaBySerialNumber(data) {
    return request({
        url: '/resume/queryResumeOpAndMa',
        method: 'GET',
        data
    })
}

//根据序列号、机器码查询特征参数
export function queryResumeMeModelBySerialNumAndMachineNum(data) {
    return request({
        url: '/resume/queryResumeMeModel',
        method: 'GET',
        data
    })
}

